package com.example.infrastructure.domain.person.repo;

import com.example.infrastructure.domain.person.aggregate.Person;
import org.springframework.data.domain.Example;

import java.util.List;
import java.util.Optional;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/23 上午11:46
 **/
public interface PersonRepo {
    Optional<Person> findById(String personId);

    List<Person> findPerson(Example<Person> example);

    Person save(Person person);

    void delete(String personId);
}
